/**     
* @Title: ConfigServiceImpl.java
* @Package me.springboot.mybatis.service.impl 
* @Description: TODO
* @author zengh 
* @date 2018/04/24
* @version V1.0     
*/
package me.springboot.mybatis.service.impl;

import me.springboot.mybatis.dao.ConfigMapper;
import me.springboot.mybatis.model.Config;
import me.springboot.mybatis.service.ConfigService;
import me.springboot.mybatis.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


/**   
* @ClassName: ConfigService   
* @Description: TODO
* @author zengh
* @date 2018/04/24
*/
@Service
@Transactional
public class ConfigServiceImpl extends AbstractService<Config> implements ConfigService {

    @Resource
    private ConfigMapper configMapper;

    @Override
    public void updateConfig(Config config) {
        configMapper.updateConfig(config);
    }

    @Override
    public List<Config> selectByMap(Map<String, Object> param) {
        return configMapper.selectByMap(param);
    }
}